export default {
  upload: {
    // 输入框
    component: 'el-upload',
    attrs: {
      placeholder: '请输入'
    }
  },
  button: {
    // 输入框
    component: 'el-button',
    attrs: {
      placeholder: '请输入',
      clearable: true,
      spellcheck: false,
      label: '按钮'
    }
  },
  input: {
    // 输入框
    component: 'el-input',
    attrs: {
      placeholder: '请输入',
      clearable: true

    }
  },
  inputrange: {
    // 输入框
    component: 'base-inputrange',
    attrs: {
      placeholder: '请输入',
      clearable: true
    }
  },
  select: {
    component: 'base-select', // 自定义组件,为了在el-select添加options能够生成el-options节点
    attrs: {
      placeholder: '请选择',
      clearable: true
    }
  },
  date: {
    // 日期
    component: 'el-date-picker',
    attrs: {
      placeholder: '选择',
      clearable: true,
    }
  },
  daterange: {
    // 日期范围
    component: 'el-date-picker',
    attrs: {
      placeholder: '选择',
      clearable: true,
      type: 'daterange',
      'start-placeholder': '开始日期',
      'end-placeholder': '结束日期',
      format: 'yyyy-MM-dd',
      'value-format': 'yyyy-MM-dd HH:mm:ss'

    }
  },
  selectcascader: {
    component: 'base-cascader',
    attrs: {
      clearable: true,
      placeholder: '请选择'

    }
  },
  cascader: {
    component: 'el-cascader',
    attrs: {
      clearable: true,
      placeholder: '请选择'

    }
  },
  textarea: {
    // 文本框
    component: 'el-input',
    attrs: {
      type: 'textarea',
      placeholder: '请输入',
      rows: 3

    }
  },
  number: {
    // 数字
    component: 'el-input-number',
    attrs: {
      // onblur:"value=value.replace(/[^0-9.]/g,'')",
      placeholder: '请输入',
      clearable: true
    },
    listeners: {}
  },
  datetime: {
    // 日期时间
    component: 'el-date-picker',
    attrs: {
      placeholder: '选择',
      clearable: true,
      type: 'datetime',
      format: 'yyyy-MM-dd HH:mm:ss',
      'value-format': 'yyyy-MM-dd HH:mm:ss'

    }
  },
  'checkbox-group': {
    // 多选组
    component: 'base-checkbox-group', // 同上
    attrs: {
      placeholder: '请勾选'
    }
  },
  'radio-group': {
    // 多选组
    component: 'base-radio-group', // 同上
    attrs: {
      placeholder: '请勾选'
    }
  }
};
